// FunctionObject.cpp: implementation of the FunctionObject class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "phsshare.h"
#include "FunctionObject.h"
#include "ModelObject.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_DYNAMIC_EX(FunctionObject, UeObject)

FunctionObject::FunctionObject()
{
	m_pPart = NULL;
	m_pNextRegister = NULL;
}

FunctionObject::~FunctionObject()
{
}

void FunctionObject::RegisterToModel(ModelObject& object)
{
	FunctionObject* pFunction = NULL;
	FunctionStack::Iterator* pIterator = NULL;
	object.AttachFunction(this);
}

void FunctionObject::UnRegisterToModel(ModelObject& object)
{
	object.GetFunctionStack()->RemoveFunction(this);
}